<?php 
session_start();
session_destroy();
$date_of_expiry = time() - 60 * 60 * 24 * 14 ;
setcookie( "sid", "", $date_of_expiry );
setcookie( "checklog", "", $date_of_expiry );
header("location:index.php");
?>